package org.cbyyx.tc.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 订单表
 *
 * @TableName orders
 */
@TableName(value ="orders")
@Data
public class Order {
    /**
     * 订单ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 订单总价
     */
    @TableField(value = "totalPrise")
    private Long totalPrise;

    /**
     * 订单状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 收货地址
     */
    @TableField(value = "addressId")
    private Long addressId;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;
}